tools/hotplug: Do not mind if "ip link set" fails on vif backends
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 14 Dec 2010 17:38:18 +0000 (17:38 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 14 Dec 2010 17:38:18 +0000 (17:38 +0000)
commit6e22a6ba68a6270fa2ec85feab8163bab8523c55
treed58832a7ca5d9d8aca469b154a50862505fc33d7
parent6250b87dcd7eef8ba59a32edc41751b833f990e0
tools/hotplug: Do not mind if "ip link set" fails on vif backends

Most versions of netback do not support setting the MAC address.  This
means that c/s 937488219719 causes the hotplug script to break for
vifs, even as it fixes the bridge-wrong-MAC-address problem for tap
devices (used for emulated nics).

The mac-setting operation is not necessary for vifs since they are
hardcoded to fe:ff* anyway.

As a band-aid, add "|| true" to the call to ip link, so that this
error does not cause the hotplug operation to fail.  There will still
be an error message printed until we can fix this better.

Suggested-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/xen-network-common.sh